package com.cykj.controller;

import com.cykj.service.VisitDoctorService;
import com.cykj.util.ResponseDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/visitDoctor")
public class VisitDoctorController {
    @Autowired
    private VisitDoctorService visitDoctorService;
    @RequestMapping("/addInfo")
    public ResponseDto addInfo(String id, String projectName, String orderExaminationId) {
        return visitDoctorService.addInfo(id, projectName, orderExaminationId);
    }
    @RequestMapping("/perfectInfo")
    public ResponseDto perfectInfo(int adminId, String summary, String proName) {
        return visitDoctorService.perfectInfo(adminId, summary, proName);
    }
    @RequestMapping("/selectSummary")
    public ResponseDto selectSummary(String name) {
        return visitDoctorService.selectSummary(name);
    }
    @RequestMapping("/getAllInfo")
    public ResponseDto getAllInfo(int finish,int pageCurr,int pageSize) {
        return visitDoctorService.getAllInfo(finish,pageCurr,pageSize);
    }
}
